<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Class Rules for User Model
*/
class User_rules
{
	function __construct()
	{
		# code...
	}

	/**
	 * [get_name_company_rules description]
	 * @return [array] [settings rules for register]
	 */
	public function get_register_rules()
	{
		$rules['register_rule'] = array(
			array(
					'field' => 'username',
					'rules' => 'trim|required|min_length[6]|max_length[30]|is_unique[t_users.username]'
			),
			array(
					'field' => 'password',
					'rules' => 'trim|required|min_length[6]|max_length[30]'
			),
			array(
					'field' => 'secret_key',
					'rules' => 'trim|required|min_length[4]|max_length[4]'
			),
			array(
					'field' => 'phone_number',
					'rules' => 'trim|required|max_length[30]'
			),
			array(
					'field' => 'email',
					'rules' => 'trim|required|max_length[100]|valid_email|xss_clean|is_unique[t_users.email]'
			)
		);

		return $rules['register_rule'];
	}
}
